import {BasicColumn,FormSchema} from '@apps/antd-admin/src/components/Table';

export const columns: BasicColumn[] = [
    {
        title: '商品名称',
        dataIndex: 'orderProductId',
        width: 200,
    },
    {
        title: 'NFC标签标识',
        dataIndex: 'nfc',
        width: 200,
    },
    {
        title: '货箱标识',
        dataIndex: 'chestId',
        width: 200,
    },
    {
        title: '货架标识',
        dataIndex: 'shelvesId',
        width: 200,
    },
    {
        title: '上架时间',
        dataIndex: 'shelvesTime',
        width: 200,
    },
    {
        title: '上架人',
        dataIndex: 'shelvesUserName',
        width: 200,
    },
    {
        title: '上架人',
        dataIndex: 'shelvesUserId',
        width: 200,
    },
    {
        title: '倔老头代码',
        dataIndex: 'thirdCode',
        width: 200,
    },
    {
        title: '性别（男M女F通用T）',
        dataIndex: 'gender',
        width: 200,
    },
    {
        title: '商品图片',
        dataIndex: 'productImg',
        width: 200,
    },
    {
        title: '识别编码',
        dataIndex: 'discernCode',
        width: 200,
    },
    {
        title: '商品名称',
        dataIndex: 'productTitle',
        width: 200,
    },
    {
        title: '商品sku',
        dataIndex: 'productSku',
        width: 200,
    },
    {
        title: '品类id',
        dataIndex: 'categoryId',
        width: 200,
    },
    {
        title: '商品类型1主商品2搭配商品3主搭商品',
        dataIndex: 'productType',
        width: 200,
    },
    {
        title: '商品备注',
        dataIndex: 'remarks',
        width: 200,
    },
    {
        title: '订单号',
        dataIndex: 'orderId',
        width: 200,
    },
    {
        title: '拍摄方式',
        dataIndex: 'shotType',
        width: 200,
    },
    {
        title: '',
        dataIndex: 'schedulingTime',
        width: 200,
    },
    {
        title: '机位id',
        dataIndex: 'seatId',
        width: 200,
    },
    {
        title: '款号',
        dataIndex: 'itemNo',
        width: 200,
    },
    {
        title: 'code',
        dataIndex: 'skuCode',
        width: 200,
    },
    {
        title: '货号',
        dataIndex: 'goodsCode',
        width: 200,
    },
    {
        title: '返货记录id',
        dataIndex: 'orderReturnId',
        width: 200,
    },
    {
        title: '入库时间',
        dataIndex: 'inStorageTime',
        width: 200,
    },
    {
        title: '出库时间',
        dataIndex: 'outStorageTime',
        width: 200,
    },
    {
        title: '影棚ID',
        dataIndex: 'studioId',
        width: 200,
    },
];

export const searchFormSchema: FormSchema[] = [
    {
        field: 'orderId',
        label: '订单编号',
        component: 'Input',
        colProps: {span: 3},
    },
    {
        field: 'orderId',
        label: '物流编号',
        component: 'Input',
        colProps: {span: 3},
    },
    {
        field: 'categoryId',
        label: '品类',
        component: 'Input',
        colProps: {span: 3},
    },
];

export const formSchema: FormSchema[] = [
    {
        label: '订单编号',
        field: 'orderId',
        component: 'Input',
        required: true,
    },
    {
        label: '商品图像',
        field: 'productImg',
        component: 'ImageUpload',
        required: true,
    },
    {
        label: 'NFC',
        field: 'orderId',
        component: 'Input',
        required: true,
        componentProps:{
            placeholder:'请贴合NFC'
        }
    },
    {
        label: '商品名称',
        field: 'productTitle',
        component: 'Input',
        required: true
    },
    {
        label: '商品sku',
        field: 'productSku',
        component: 'Input',
        required: true
    },
    {
        label: '款号',
        field: 'itemNo',
        component: 'Input',
        required: true
    },
    {
        label: 'code',
        field: 'skuCode',
        component: 'Input',
        required: true
    },
    {
        label: '性别',
        field: 'gender',
        component: 'ApiRadioGroup',
        required: true,
        componentProps: {
            options: [
                {label: '男', value: 'M'},
                {label: '女', value: 'F'},
                {label: '通用', value: 'T'}
            ],
        },
    },
    {
        label: '商品品类',
        field: 'skuCode',
        component: 'ApiSelect',
        required: true,
        componentProps: {
            api: '',
            params: {},
            labelField: '',
            valueField: '',
            immediate: true,
        },
    },
    {
        label: '货架',
        field: 'shelvesId',
        component: 'ApiSelect',
        required: true,
        componentProps: {
            api: '',
            params: {},
            labelField: '',
            valueField: '',
            immediate: true,
        },
    },
    {
        label: '拍摄方式',
        field: 'shotType',
        component: 'ApiRadioGroup',
        required: true,
        componentProps: {
            options: [
                {label: '人像平面', value: '1'},
                {label: '静物平面', value: '2'}
            ],
        },
    },
    {
        label: '排期日期',
        field: 'outStorageTime',
        component: 'DatePicker',
        required: true
    },
];
